package com.itheima.demo02.Generic;

public class Demo02GenericClass {
    public static void main(String[] args) {
        GenericClass<String> gc = new GenericClass<>();
        gc.setName("只能是字符串");
        String name = gc.getName();
        System.out.println(name);
    }
}
